﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EGEHaina.Library.Session
{
    public class FlashMessenger
    {
        public enum MessageType
        {
            Success,
            Warning,
            Error,
            Info
        };

        private Dictionary<MessageType, Queue<string>> _messages;

        public Dictionary<MessageType, Queue<string>> Messages
        {
            get { return _messages; }
            private set { _messages = value; }
        }

        public FlashMessenger()
        {
            Messages = new Dictionary<MessageType, Queue<string>>();
            foreach (MessageType type in Enum.GetValues(typeof(MessageType)))
            {
                Messages[type] = new Queue<string>();
            }
        }
    }
}